home *** CD-ROM | disk | FTP | other *** search
/ SGI O2 Out of Box Experience / SGI O2 Out of Box Experience.iso / jungleIsland / critters / butterfly.wrl next >
Text File  |  1996-11-14  |  5KB  |  240 lines

  1. #VRML Draft #2 V2.0 utf8 CosmoCreate3D V1.0
  2.  
  3. Group {
  4.   children    [
  5.     # Inline { url "bbox.wrl" }
  6.     # ,
  7.     DEF BUTTERFLY Group {
  8.       children    [
  9.     Group {
  10.       children    [
  11.         Transform {
  12.           children    [
  13.         DEF VIS-SENSOR_0 VisibilitySensor {
  14.           center    42 4 0
  15.           size    100 30 100
  16.           enabled    TRUE
  17.         }
  18.         ,
  19.         DEF BODY_1 Transform {
  20.           children    [
  21.             DEF WING1_2 Transform {
  22.               children    Shape {
  23.             appearance    Appearance {
  24.               material    DEF _3 Material {
  25.                 ambientIntensity    0
  26.                 diffuseColor    0 0 0
  27.                 specularColor    0.637764 0.37654 0
  28.                 emissiveColor    0.921769 0.544218 0
  29.                 shininess    0.0540541
  30.                 transparency    0
  31.               }
  32.  
  33.               texture    NULL
  34.  
  35.               textureTransform    NULL
  36.  
  37.             }
  38.  
  39.             geometry    IndexedFaceSet {
  40.               coord    Coordinate {
  41.                 point    [ 0 0 0,
  42.                       2 0 0.5,
  43.                       0.25 0 -2 ]
  44.               }
  45.  
  46.               coordIndex    [ 0, 1, 2, -1, 2, 1, 0, -1 ]
  47.               colorIndex    [  ]
  48.             }
  49.  
  50.               }
  51.  
  52.               rotation    0 0 1  0.2
  53.               center    0 0 0
  54.             }
  55.             ,
  56.             DEF WING2_4 Transform {
  57.               children    Shape {
  58.             appearance    Appearance {
  59.               material    USE _3
  60.  
  61.               texture    NULL
  62.  
  63.               textureTransform    NULL
  64.  
  65.             }
  66.  
  67.             geometry    IndexedFaceSet {
  68.               coord    Coordinate {
  69.                 point    [ 0 0 0,
  70.                       -2 0 0.5,
  71.                       -0.25 0 -2 ]
  72.               }
  73.  
  74.               coordIndex    [ 0, 1, 2, -1, 2, 1, 0, -1 ]
  75.               colorIndex    [  ]
  76.             }
  77.  
  78.               }
  79.  
  80.               rotation    0 0 -1  0.2
  81.               center    0 0 0
  82.             }
  83.           ]
  84.           translation    84.832 0 -15.2
  85.           rotation    0 1 0  3.54362
  86.           scale    0.999996 0.999999 0.999996
  87.         }
  88.           ]
  89.         }
  90.         ,
  91.         Group {
  92.           children    [
  93.         DEF wingflap CoKeyframeAnimation {
  94.           children    DEF WING-TIMER_5 TimeSensor {
  95.             cycleInterval    0.5
  96.             loop    TRUE
  97.             startTime    0
  98.           }
  99.  
  100.           duration    0.5
  101.           framesPerSecond    10
  102.         }
  103.         ,
  104.         DEF WING1-FLAP_6 CoHermiteOrientationInterpolator {
  105.           keys    [ 0, 0.5, 1 ]
  106.           keyTypes    [ HERMITE,
  107.                 HERMITE,
  108.                 HERMITE ]
  109.           numFrames    5
  110.           values    [ 0 0 1  0.0999996,
  111.                 0 0 1  1.4,
  112.                 0 0 1  0.0999996 ]
  113.         }
  114.         ,
  115.         DEF WING2-FLAP_7 CoHermiteOrientationInterpolator {
  116.           keys    [ 0, 0.5, 1 ]
  117.           keyTypes    [ HERMITE,
  118.                 HERMITE,
  119.                 HERMITE ]
  120.           numFrames    5
  121.           values    [ 0 0 -1  0.0999996,
  122.                 0 0 -1  1.4,
  123.                 0 0 -1  0.0999996 ]
  124.         }
  125.           ]
  126.         }
  127.         ,
  128.         Group {
  129.           children    [
  130.         DEF pathanim CoKeyframeAnimation {
  131.           children    DEF PATH-TIMER_8 TimeSensor {
  132.             cycleInterval    10
  133.             loop    TRUE
  134.             startTime    0
  135.           }
  136.  
  137.           duration    10
  138.           framesPerSecond    10
  139.         }
  140.         ,
  141.         DEF PATH-TRANS_9 CoHermitePositionInterpolator {
  142.           keys    [ 0, 0.1, 0.2, 0.3,
  143.                 0.4, 0.5, 0.6, 0.7,
  144.                 0.8, 0.85, 0.9, 1 ]
  145.           keyTypes    [ HERMITE,
  146.                 HERMITE,
  147.                 HERMITE,
  148.                 HERMITE,
  149.                 HERMITE,
  150.                 HERMITE,
  151.                 HERMITE,
  152.                 HERMITE,
  153.                 HERMITE,
  154.                 HERMITE,
  155.                 HERMITE,
  156.                 HERMITE ]
  157.           numFrames    100
  158.           values    [ 0 0 0,
  159.                 24 3 48,
  160.                 48 12  32,
  161.                 72 15 40,
  162.                 88 8 16,
  163.                 88 0 -4,
  164.                 76 -7 -32,
  165.                 48 -8 -48,
  166.                 31.9213 -10 -24.1629,
  167.                 12.3622 -6 -29.1421,
  168.                 -3.62542 -2  -23.472,
  169.                 0 0 0 ]
  170.         }
  171.         ,
  172.         DEF PATH-ORIENT_10 CoHermiteOrientationInterpolator {
  173.           keys    [ 0, 0.1, 0.2, 0.3,
  174.                 0.4, 0.5, 0.6, 0.7,
  175.                 0.8, 0.85, 0.9, 1 ]
  176.           keyTypes    [ HERMITE,
  177.                 HERMITE,
  178.                 HERMITE,
  179.                 HERMITE,
  180.                 HERMITE,
  181.                 HERMITE,
  182.                 HERMITE,
  183.                 HERMITE,
  184.                 HERMITE,
  185.                 HERMITE,
  186.                 HERMITE,
  187.                 HERMITE ]
  188.           numFrames    100
  189.           values    [ 0 0 1  0,
  190.                 0 1 0  1.5,
  191.                 0 1 0  2,
  192.                 0 1 0  1.3,
  193.                 0 -1 0  3,
  194.                 0 1 0  3.5,
  195.                 0 1 0  3.7,
  196.                 0 -1 0  1.6,
  197.                 0 -1 0  1.24177,
  198.                 0 -1 0  1.4014,
  199.                 0 -1 0  0.50753,
  200.                 0 0 1  0 ]
  201.         }
  202.           ]
  203.         }
  204.       ]
  205.     }
  206.     ,
  207.     DEF VP1 Viewpoint {
  208.       position    40 130 10
  209.       orientation    -1 0 0  1.5
  210.       fieldOfView    0.785398
  211.       description    "viewpoint1"
  212.     }
  213.     ,
  214.     DEF VP2 Viewpoint {
  215.       position    -20.8117 -2.44897 -39.3458
  216.       orientation    0 1 0  3.14159
  217.       description    "viewpoint2"
  218.     }
  219.     ,
  220.     DEF VP3 Viewpoint {
  221.       position    -7.18273 -41.4078 16.0542
  222.       orientation    0.977017 -0.207617 0.048304  1.203
  223.       fieldOfView    0.785398
  224.       description    "viewpoint3"
  225.     }
  226.       ]
  227.     }
  228.   ]
  229. }
  230. ROUTE WING1-FLAP_6.value_changed TO WING1_2.set_rotation
  231. ROUTE WING2-FLAP_7.value_changed TO WING2_4.set_rotation
  232. ROUTE PATH-TRANS_9.value_changed TO BODY_1.set_translation
  233. ROUTE PATH-ORIENT_10.value_changed TO BODY_1.set_rotation
  234. ROUTE VIS-SENSOR_0.enterTime TO WING-TIMER_5.set_startTime
  235. ROUTE WING-TIMER_5.fraction TO WING1-FLAP_6.set_fraction
  236. ROUTE WING-TIMER_5.fraction TO WING2-FLAP_7.set_fraction
  237. ROUTE VIS-SENSOR_0.enterTime TO PATH-TIMER_8.set_startTime
  238. ROUTE PATH-TIMER_8.fraction TO PATH-TRANS_9.set_fraction
  239. ROUTE PATH-TIMER_8.fraction TO PATH-ORIENT_10.set_fraction
  240.